#pragma once

#include <windows.h>

class TextMetrics;
class Text;
class WindowMetrics
{
public:
	void UseNumArea(bool use);
	void UseMarkArea(bool use);

public:
	int GetWndWidth();
	int GetWndHeight();
	int GetFormattingWidth();
	int GetMarginWidth();
	int GetMarkAreaWidth();
	int GetNumAreaWidth();
	bool IsMarkArea();
	bool IsNumArea();
	RECT GetFormattingRect();

	void SetData(int width, int height);
	void SetMarginWidth();

public:
	void Init(TextMetrics* tm, Text* text);

private:
	int wndWidth;
	int wndHeight;
	int marginWidth;
	int markAreaWidth;
	int numAreaWidth;

	TextMetrics* tm;
	Text* text;
};
